﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Two.Consul.Controllers
{
    [Route("consul/v1/[controller]")]
    [ApiController]
    public class HealthController : ControllerBase
    {
        [HttpGet]
        public string Health()
        {
            return "Two.Health 健康检查！";
        }


        [HttpGet("test")]
        [Authorize]
        public string AuthorizeTest()
        {
            return "Two.Health AuthorizeTest！";
        }
    }
}
